reading data entered by user in text file